package com.xhsj.user.hr.process.hrLeaveProcess.entity;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xhsj.user.hr.base.BaseEntity;
import java.time.LocalDate;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 流程-hr请假时间表
 * </p>
 *
 * @author liuqinghua
 * @since 2020-09-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_hr_approval_leave_time")
public class TbHrApprovalLeaveTime extends BaseEntity<TbHrApprovalLeaveTime> {

    private static final long serialVersionUID = 1L;

    /**
     * 请假id 或者 销假id
     */
    @TableField("data_id")
    private long dataId;

    /**
     * 开始日期
     */
    @TableField("start_date")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date startDate;

    /**
     * 结束日期
     */
    @TableField("stop_date")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date stopDate;

    /**
     * 开始时间
     */
    @TableField("start_time")
    private String startTime;

    /**
     * 结束时间
     */
    @TableField("stop_time")
    private String stopTime;

    /**
     * 总计数
     */
    @TableField("days")
    private BigDecimal days;

    /**
     * 0请假 1延期 2销假
     */
    @TableField("operation_type")
    private Integer operationType;

    /**
     * 调休占用年度 - 针对调休占用的是哪一年的加班时长
     */
    @TableField("occupy_year")
    private String occupyYear;


}
